package com.huawei.gamebox.service.common.cardkit.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.huawei.gamebox.service.common.cardkit.card.LeavesEntranceCard;
import o.azb;
import o.cih;
import o.exp$a;
import o.exp.d;
import o.exp.j;

public class LeavesEntranceNode extends BaseGsNode {
    public LeavesEntranceNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        ˊ(viewGroup);
        View inflate = LayoutInflater.from(this.ॱ).inflate(j.ʻ, null);
        cih leavesEntranceCard = new LeavesEntranceCard(this.ॱ);
        leavesEntranceCard.ˏ(inflate);
        ˊ(leavesEntranceCard);
        viewGroup.addView(inflate);
        ((LinearLayout) viewGroup.findViewById(d.ॱˎ)).setOrientation(1);
        return true;
    }

    private void ˊ(ViewGroup viewGroup) {
        int ˊ = azb.ˊ(this.ॱ);
        viewGroup.setPadding(ˊ, this.ॱ.getResources().getDimensionPixelSize(exp$a.ॱ), ˊ, 0);
    }
}
